<?php
if(!defined('IN_GAME')) exit('Access Denied');

function show_panel_style($number){
	$progress = userget('progress');

	if($number < $progress) return 'success';
	if($number == $progress) return 'warning';
	return 'danger';
}

function show_panel_style2($number){
	$progress = userget('progress');

	if($number < $progress) return '解锁！';
	if($number == $progress) return '突破中...';
	return 'To do!';
}
?>

<div class="row">
<div class="col-sm-12">
  <table class="sidebar">
  <tr><th width="20%"><div class="panel panel-<?php echo show_panel_style(1)?>">
    <div class="panel-heading">
      <h4><strong>钱学森之问A:</strong></h4>
	  <h4>总能试出答案</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(1)?>"><?php echo show_panel_style2(1)?></p>
    </div>
  </div></th>
  <th width="20%"><div class="panel panel-<?php echo show_panel_style(2)?>">
    <div class="panel-heading">
      <h4><strong>钱学森之问B:</strong></h4>
	  <h4>全知全能</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(2)?>"><?php echo show_panel_style2(2)?></p>
    </div>
  </div>
  </th>
  <th width="20%"><div class="panel panel-<?php echo show_panel_style(3)?>">
    <div class="panel-heading">
      <h4><strong>钱学森之问C:</strong></h4>
	  <h4>上古科大密码</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(3)?>"><?php echo show_panel_style2(3)?></p>
    </div>
  </div>
  </th>
  <th width="20%"><div class="panel panel-<?php echo show_panel_style(4)?>">
    <div class="panel-heading">
      <h4><strong>郭永怀像A:</strong></h4>
	  <h4>色子问题</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(4)?>"><?php echo show_panel_style2(4)?></p>
    </div>
  </div>
  </th>
    <th width="20%"><div class="panel panel-<?php echo show_panel_style(5)?>">
    <div class="panel-heading">
      <h4><strong>郭永怀像B:</strong></h4>
	  <h4>地毯式排查</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(5)?>"><?php echo show_panel_style2(5)?></p>
    </div>
  </div>
  </th>
  </tr>
  
    <tr><td width="20%"><div class="panel panel-<?php echo show_panel_style(6)?>">
    <div class="panel-heading">
      <h4><strong>科大映像A:</strong></h4>
	  <h4>话费区的美</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(6)?>"><?php echo show_panel_style2(6)?></p>
    </div>
  </div></td>
  <td width="20%"><div class="panel panel-<?php echo show_panel_style(7)?>">
    <div class="panel-heading">
      <h4><strong>科大映像B:</strong></h4>
	  <h4>教务处的考试</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(7)?>"><?php echo show_panel_style2(7)?></p>
    </div>
  </div>
  </td>
  <td width="20%"><div class="panel panel-<?php echo show_panel_style(8)?>">
    <div class="panel-heading">
      <h4><strong>微积分期中考A:</strong></h4>
	  <h4>助教驾到</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(8)?>"><?php echo show_panel_style2(8)?></p>
    </div>
  </div>
  </td>
  <td width="20%"><div class="panel panel-<?php echo show_panel_style(9)?>">
    <div class="panel-heading">
      <h4><strong>微积分期中考B:</strong></h4>
	  <h4>绝版图书</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(9)?>"><?php echo show_panel_style2(9)?></p>
    </div>
  </div>
  </td>
    <td width="20%"><div class="panel panel-<?php echo show_panel_style(10)?>">
    <div class="panel-heading">
      <h4><strong>微积分期中考C:</strong></h4>
	  <h4>教务处驾到</h4>
    </div>
    <div class="panel-body">
      <p class="text-<?php echo show_panel_style(10)?>"><?php echo show_panel_style2(10)?></p>
    </div>
  </div>
  </td>
  </tr>
  </table>
</div>
</div>
